export default {
<<<<<<< HEAD
  addCount(state, index) {//增加商品的个数
    state.cartList[index].count++;
  },
  //添加商品
  addGood(state, payload) {
    state.cartList.push(payload);
  },
  checkAll(state) {
    state.cartList.forEach(value => value.checked = true);
  },
  discheckAll(state) {
    state.cartList.forEach(value => value.checked = false);
  },
  //更改 maintabbar 的显示
  changeMainBarShow(state,isShow) {
    state.isShowMainTabBar = isShow;
  },
  //填充用户信息
  getUserData(state,data)
  {
    state.userdata=data;
  }
}
=======
    addCount(state,index){//增加商品的个数
      state.cartList[index].count++;
    },
    //添加商品
    addGood(state,payload){
      state.cartList.push(payload);
    },
    checkAll(state){
        state.cartList.forEach(value=>value.checked=true);
    },
    discheckAll(state){
      state.cartList.forEach(value=>value.checked=false);
    }
  }
>>>>>>> 90acaa32f4fe6d7a1235bc07a62d7147193574d0
